//
//  ESResponseHandler.m
//  Common
//
//  Created by IT.bear on 15/12/2.
//  Copyright © 2015年 IT.Bear. All rights reserved.
//

#import "ResponseHandler.h"

@implementation ResponseHandler

- (id)initWithData:(NSData *)data {
    self = [[self class] yy_modelWithJSON:data];
    if (self) {
        _data = data;
    }
    return self;
}


- (id)initWithDictionary:(NSDictionary *)dic {
    self = [[self class] yy_modelWithDictionary:dic];
    if (self) {
        _dicData = dic;
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [self yy_modelEncodeWithCoder:aCoder];
}

- (id)initWithCoder:(NSCoder *)aDecoder {
    self = [super init];
    return [self yy_modelInitWithCoder:aDecoder];
}

- (id)copyWithZone:(NSZone *)zone {
    return [self yy_modelCopy];
}

- (NSUInteger)hash {
    return [self yy_modelHash];
}

- (BOOL)isEqual:(id)object {
    return [self yy_modelIsEqual:object];
}

@end
